 <?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
?>

<script type="text/javascript">
	function mycheck() {
		$("#f1").submit();	
	}

		$(function(){
			$("#companyname").change(function(){
				var IndustryDroptoplist = $(this).val();
				if(IndustryDroptoplist!="")
				{
					$.post("<?php echo ROOT_WEB_PATH; ?>/visitorrecords/getrecruitposition/",{
						Recruitposition : $(this).val()
						},
					function(data,textStatus){
							 $("#postion:eq(0)>option").remove();
							 $(data).find("aaa").each(function(){
							//	 alert($(this).attr("name"));
								 $("#postion:eq(0)").append("<option></option>");
								 $("#postion:eq(0)>option:last").val($(this).attr("name")).html($(this).text());
						 	 });
					});
				}
				else
				{
					$("#postion:eq(0)>option").remove();
					$("#postion:eq(0)").append("<option></option>");
					$("#postion:eq(0)>option:last").val("").html("请选择");
				}
				$("#projectid:eq(0)>option").remove();
				$("#projectid:eq(0)").append("<option></option>");
				$("#projectid:eq(0)>option:last").val("").html("请选择");
			});
			//项目职位与项目的关联菜单
			$("#postion").change(function(){
				var IndustryDroptoplist = $(this).val();
				var companyname = $("#companyname").val();
				if(IndustryDroptoplist!="")
				{
					$.post("<?php echo ROOT_WEB_PATH; ?>/visitorrecords/getcompanymanage2/",{
						Projectmanagement : $(this).val(),
						Companyname : companyname
						},
					function(data,textStatus){
							 $("#projectid:eq(0)>option").remove();
							 $(data).find("aaa").each(function(){
							 $("#projectid:eq(0)").append("<option></option>");
							 $("#projectid:eq(0)>option:last").val($(this).attr("name")).html($(this).text());
						  });
						});
				}
				else
				{
					$("#projectid:eq(0)>option").remove();
					$("#projectid:eq(0)").append("<option></option>");
					$("#projectid:eq(0)>option:last").val("").html("请选择");
				}
			});
		});
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Projectmanagements');//一级目录
										   echo '>';echo __('Projectmanagements');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Candidate Toother',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<fieldset><legend><?php echo __('Candidate Toother')?></legend>
<?php echo $form->create('Candidate',array('action'=>'addtoothervisitor','type'=> 'post','id'=>'f1'));?>
<?php echo $form->hidden('thisprojectid',array('default'=>$projectid,'id'=>'prid'));?>
<?php echo $form->hidden('candidateid',array('default'=>$id,'id'=>'caid'));?>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
		<tr>
		<td width="50"></td>
		<td width="100"><?php echo __('resumespreviousCompany');//公司名?>:</td>
		<td width="500">
		<?php 
			echo $form->input('companyname',array('options'=>$op1,'id'=>'companyname','label'=>false,'div'=>false,'class'=>'TextBoxL txtOut'));	
		?>
		</td>
		</tr>
		<tr>
		<td></td>
		<td><?php echo __('recruitpositionsname');//职位名?>:</td>
		<td width="500">
		<?php 
			echo $form->input('postion',array('options'=>$op2,'id'=>'postion','label'=>false,'div'=>false,'class'=>'TextBoxL txtOut'));	
		?>
		</td>
		</tr>
		<tr>
		<td></td>
		<td><?php echo __('projectmanagementsprojectCode');//项目号?>:</td>
		<td width="500">
		<?php 
			echo $form->input('projectCode',array('options'=>$op3,'id'=>'projectid','label'=>false,'div'=>false,'class'=>'TextBoxL txtOut'));
		?>
		</td>
		</tr>
		
</table>
</fieldset>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>  <!-- __('reset', true)取消-->
		<td width="100"><?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?>  <!-- __('reset', true)取消-->

		</td>
	</tr>
</table>
<?php echo $form->end();?>
